#include "ShallowArray.h"

namespace LxCFD
{
    ShallowArray::ShallowArray()
    {
    }
    ShallowArray::ShallowArray(int length, int *array)
    {
        _Length = length;
        _Array = array;
    }
    void ShallowArray::Reverse()
    {
        for (int start = 0, end = _Length - 1; start < end; ++start, --end)
        {
            int temp = _Array[start];
            _Array[start] = _Array[end];
            _Array[end] = temp;
        }
    }
}